<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>商城后台管理系统</title>
    <link rel="stylesheet" href="/backend/css/style.default.css" type="text/css" />
    <link rel="stylesheet" href="/backend/css/my.css" type="text/css" />

    <link rel="stylesheet" href="/backend/css/responsive-tables.css">
    <script type="text/javascript" src="/backend/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/backend/js/jquery-migrate-1.1.1.min.js"></script>
    <script type="text/javascript" src="/backend/js/jquery-ui-1.9.2.min.js"></script>
    <script type="text/javascript" src="/backend/js/modernizr.min.js"></script>
    <script type="text/javascript" src="/backend/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/backend/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="/backend/js/jquery.uniform.min.js"></script>
    <!--<script type="text/javascript" src="/backend/js/flot/jquery.flot.min.js"></script>-->
    <!--<script type="text/javascript" src="/backend/js/flot/jquery.flot.resize.min.js"></script>-->
    <script type="text/javascript" src="/backend/js/responsive-tables.js"></script>
    <script type="text/javascript" src="/backend/js/custom.js"></script>
    <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="/backend/js/excanvas.min.js"></script><![endif]-->
</head>

<body>

<div class="mainwrapper">

    <div class="header">
        <div class="logo">
            <a href="/"><img src="/backend/images/logo.png" alt="" /></a>
        </div>
        <div class="headerinner">
            <ul class="headmenu">
                <li class="odd">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <span class="count">4</span>
                        <span class="head-icon head-message"></span>
                        <span class="headmenu-label">留言</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="nav-header">Messages</li>
                        <li><a href=""><span class="icon-envelope"></span> New message from <strong>Jack</strong> <small class="muted"> - 19 hours ago</small></a></li>
                        <li><a href=""><span class="icon-envelope"></span> New message from <strong>Daniel</strong> <small class="muted"> - 2 days ago</small></a></li>
                        <li><a href=""><span class="icon-envelope"></span> New message from <strong>Jane</strong> <small class="muted"> - 3 days ago</small></a></li>
                        <li><a href=""><span class="icon-envelope"></span> New message from <strong>Tanya</strong> <small class="muted"> - 1 week ago</small></a></li>
                        <li><a href=""><span class="icon-envelope"></span> New message from <strong>Lee</strong> <small class="muted"> - 1 week ago</small></a></li>
                        <li class="viewmore"><a href="messages.html">View More Messages</a></li>
                    </ul>
                </li>
                <li>
                    <a class="dropdown-toggle" data-toggle="dropdown" data-target="#">
                        <span class="count">10</span>
                        <span class="head-icon head-users"></span>
                        <span class="headmenu-label">用户</span>
                    </a>
                    <ul class="dropdown-menu newusers">
                        <li class="nav-header">New Users</li>
                        <li>
                            <a href="">
                                <img src="/backend/images/photos/thumb1.png" alt="" class="userthumb" />
                                <strong>Draniem Daamul</strong>
                                <small>April 20, 2013</small>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="/backend/images/photos/thumb2.png" alt="" class="userthumb" />
                                <strong>Shamcey Sindilmaca</strong>
                                <small>April 19, 2013</small>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="/backend/images/photos/thumb3.png" alt="" class="userthumb" />
                                <strong>Nusja Paul Nawancali</strong>
                                <small>April 19, 2013</small>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="/backend/images/photos/thumb4.png" alt="" class="userthumb" />
                                <strong>Rose Cerona</strong>
                                <small>April 18, 2013</small>
                            </a>
                        </li>
                        <li>
                            <a href="">
                                <img src="/backend/images/photos/thumb5.png" alt="" class="userthumb" />
                                <strong>John Doe</strong>
                                <small>April 16, 2013</small>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="odd">
                    <a class="dropdown-toggle" data-toggle="dropdown" data-target="#">
                        <span class="count">1</span>
                        <span class="head-icon head-bar"></span>
                        <span class="headmenu-label">数据</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="nav-header">Statistics</li>
                        <li><a href=""><span class="icon-align-left"></span> New Reports from <strong>Products</strong> <small class="muted"> - 19 hours ago</small></a></li>
                        <li><a href=""><span class="icon-align-left"></span> New Statistics from <strong>Users</strong> <small class="muted"> - 2 days ago</small></a></li>
                        <li><a href=""><span class="icon-align-left"></span> New Statistics from <strong>Comments</strong> <small class="muted"> - 3 days ago</small></a></li>
                        <li><a href=""><span class="icon-align-left"></span> Most Popular in <strong>Products</strong> <small class="muted"> - 1 week ago</small></a></li>
                        <li><a href=""><span class="icon-align-left"></span> Most Viewed in <strong>Blog</strong> <small class="muted"> - 1 week ago</small></a></li>
                        <li class="viewmore"><a href="charts.html">View More Statistics</a></li>
                    </ul>
                </li>
                <li class="right">
                    <div class="userloggedinfo">
                        <!--<?php if(!empty(session('admin_ico'))):?>-->
                        <!--<?php showImage(session('admin_ico'),'100','100');?>-->
                        <!--<?php else:?>-->
                        <!--<img src="/backend/images/photos/thumb1.png" alt="" />-->
                        <!--<?php endif;?>-->
                        <div class="userinfo">
                            <h5><?php echo session('admin_name');?> <small>- <?php echo session('admin_email');?></small></h5>
                            <ul>
                                <li><a href="<?php echo url('base/Index/editProfile');?>">编辑资料</a></li>
                                <li><a href="<?php echo url('base/Index/setPassword');?>">修改密码</a></li>
                                <li><a href="<?php echo url('base/Login/logout');?>">退出</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
            </ul><!--headmenu-->
        </div>
    </div>

    <div class="leftpanel">

        <div class="leftmenu">
            <ul class="nav nav-tabs nav-stacked">
                <li class="nav-header"></li>

                <?php foreach($btnData as $k=>$v):
                    $frist = explode('_',$k);
                ?>
                <li class="dropdown"><a href=""><span class="<?php echo $frist[1];?>"></span> <?php echo $frist[0];?></a>
                    <ul>
                        <?php foreach($v as $k1=>$v1):?>
                        <li <?php $v1['module_name'] == request()->module() && $v1['controller_name'] == request()->controller() ? $dh='active':$dh='';?> class="<?php echo $dh;?>"  ><a href="<?php echo url($v1['module_name'].'/'.$v1['controller_name'].'/'.$v1['action_name']);?>"><?php echo $v1['pri_name'];?></a></li>
                        <?php endforeach;?>
                    </ul>
                </li>
                <?php endforeach;?>

            </ul>
        </div><!--leftmenu-->

    </div><!-- leftpanel -->

    <div class="rightpanel ">

        <ul class="breadcrumbs ">
            <li><a href="/"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
            <li>首页 <span class="separator"></span> </li>
            <li><?php echo $_page_title;?>  </li>
            <li class="right">
                <a href="" data-toggle="dropdown" class="dropdown-toggle"><i class="icon-tint"></i> 选择皮肤</a>
                <ul class="dropdown-menu pull-right skin-color">
                    <li><a href="default">默认</a></li>
                    <li><a href="navyblue">藏青色</a></li>
                    <li><a href="palegreen">淡绿色</a></li>
                    <li><a href="red">红色</a></li>
                    <li><a href="green">绿色</a></li>
                    <li><a href="brown">棕色</a></li>
                </ul>

            </li>
            <li class="right">
                <a href="<?php echo $_btn_link;?>" style="color:#db4d4d;text-decoration: underline;"><span class="<?php echo $_page_ico;?>"></span>&ensp;<?php echo $_btn_title;?></a>
            </li>
        </ul>




        {block name="my_body"}{/block}


    </div><!--rightpanel-->

</div><!--mainwrapper-->
<script type="text/javascript">
    jQuery(document).ready(function() {
//
//        // simple chart
//        var flash = [[0, 11], [1, 9], [2,12], [3, 8], [4, 7], [5, 3], [6, 1]];
//        var html5 = [[0, 5], [1, 4], [2,4], [3, 1], [4, 9], [5, 10], [6, 13]];
//        var css3 = [[0, 6], [1, 1], [2,9], [3, 12], [4, 10], [5, 12], [6, 11]];
//
//        function showTooltip(x, y, contents) {
//            jQuery('<div id="tooltip" class="tooltipflot">' + contents + '</div>').css( {
//                position: 'absolute',
//                display: 'none',
//                top: y + 5,
//                left: x + 5
//            }).appendTo("body").fadeIn(200);
//        }
//
//
//        var plot = jQuery.plot(jQuery("#chartplace"),
//            [ { data: flash, label: "Flash(x)", color: "#6fad04"},
//                { data: html5, label: "HTML5(x)", color: "#06c"},
//                { data: css3, label: "CSS3", color: "#666"} ], {
//                series: {
//                    lines: { show: true, fill: true, fillColor: { colors: [ { opacity: 0.05 }, { opacity: 0.15 } ] } },
//                    points: { show: true }
//                },
//                legend: { position: 'nw'},
//                grid: { hoverable: true, clickable: true, borderColor: '#666', borderWidth: 2, labelMargin: 10 },
//                yaxis: { min: 0, max: 15 }
//            });
//
//        var previousPoint = null;
//        jQuery("#chartplace").bind("plothover", function (event, pos, item) {
//            jQuery("#x").text(pos.x.toFixed(2));
//            jQuery("#y").text(pos.y.toFixed(2));
//
//            if(item) {
//                if (previousPoint != item.dataIndex) {
//                    previousPoint = item.dataIndex;
//
//                    jQuery("#tooltip").remove();
//                    var x = item.datapoint[0].toFixed(2),
//                        y = item.datapoint[1].toFixed(2);
//
//                    showTooltip(item.pageX, item.pageY,
//                        item.series.label + " of " + x + " = " + y);
//                }
//
//            } else {
//                jQuery("#tooltip").remove();
//                previousPoint = null;
//            }
//
//        });
//
//        jQuery("#chartplace").bind("plotclick", function (event, pos, item) {
//            if (item) {
//                jQuery("#clickdata").text("You clicked point " + item.dataIndex + " in " + item.series.label + ".");
//                plot.highlight(item.series, item.datapoint);
//            }
//        });


        //datepicker
        jQuery('#datepicker').datepicker();

        // tabbed widget
        jQuery('.tabbedwidget').tabs();



    });
</script>
{block name="my_js"}{/block}
</body>
</html>
